package com.youlai.boot.diet.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.diet.model.entity.DietPlan;
import com.youlai.boot.diet.model.form.DietPlanForm;

/**
 * 饮食计划对象转换器
 *
 * @author cuisheng
 * @since 2025-03-30 19:06
 */
@Mapper(componentModel = "spring")
public interface DietPlanConverter{

    DietPlanForm toForm(DietPlan entity);

    DietPlan toEntity(DietPlanForm formData);
}